var teamId;
var teamOpponentId;
var backURL;
var teamOpponent={};
$(document).ready(function(){
	$.ajaxSettings.async = false;
	$('#header').animate({'top':'0px'},400);
	teamId = args.teamId; //取得id的值
	teamOpponentId=args.teamOpponentId;
	backURL = args.backURL;
	
	$.getJSON(path+"/soccer/tmTeamOpponentAction!findTeamOpponent.action",{teamOpponentId: teamOpponentId}, function(data){
		teamOpponent=data.tmTeamOpponent;
		$("input[id='opponentName']").val(teamOpponent.opponentName);
		$("input[id='contacts']").val(teamOpponent.contacts);
		$("input[id='contactPhone']").val(teamOpponent.contactPhone);
		$("input[id='remark']").val(teamOpponent.remark);
	});
});

function goBack(){
	var timestamp = (new Date()).valueOf();
	window.location.href=path+backURL+"?teamId="+teamId+"&timestamp="+timestamp;
}
